package com.buobao.spring.service;

import com.buobao.spring.dao.UserDao;

public class Userservice {
    private UserDao userDao;

    public void insert()
    {
        System.out.println("userservice insert");
        userDao.add();
    }

    public String getPassword(String type,int length){
        System.out.println(type+","+length);
//        throw new RuntimeException("error");
        return "asdasdada";
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
